package Matrix;

public class MartixGraphTest {
    public static void main(String[] args) {
        String[] values = {"A","B","C","D"};
        Triple[] edge = {new Triple(0,1,10),new Triple(1,0,10),
                new Triple(0,2,8),new Triple(2,0,8),new Triple(1,2,20),
                new Triple(2,1,20),new Triple(1,3,9),new Triple(3,1,9)};
        MartixGraph<String> martixGraph = new MartixGraph<>(values,edge);
        System.out.println("带权无向图\n"+martixGraph);
    }
}
